<template>
	<div style="display: flex;">
		    <router-link to="/">首页</router-link>
			<router-link :to="{name:'channel ,params:{tid:item.tid}'}" v-for="(item,index) in navList" :key="index" v-if="item.typename.split('').length<=2">
				{{item.typename}}
			</router-link>
			<router-link :to="{name:'channel ,params:{tid:item.tid}'}" v-for="(item,index) in navList" :key="index" v-else>
				{{item.typename}}
			</router-link>
	</div>
</template>

<script>
	export default{
		data(){
			return {
				navList:window.__INITIAL_STATE__.reduxAsyncConnect.partitionList[0]
			}
		}
	}
</script>

<style>
</style>